<?php
class ses_cart_item_m_cart implements i_return_product_l_cart{

    public $product_id = NULL;
    public $qty = 0;

    public function __construct($pid, $qty) {
        $this->product_id = $pid;
        $this->qty = $qty;
    }

    public function get_product(){
        $prod = new product_m_product();
        $prod->get_by_id($this->product_id);
        if($prod->exists()){
            return $prod;
        }else{
            return NULL;
        }
    }

}
?>